import request from '@/utils/request'

// 查询user
export function getUser() {
  return request({
    url: '/manager/user',
    method: 'get'
  })
}



// 查询当前用户预约信息
export function getCurrentUseReservations(queryParams) {
  return request({
    url: '/manager/user/currentUseReservations',
    method: 'get',
    params: queryParams
  })
}

// 取消预约
export function cancelReservation(reservationId) {
  return request({
    url: '/manager/user/cancelReservation',
    method: 'get',
    params: {
      id : reservationId
    }
  })
}

export function recharge(params) {
  return request({
    url: '/manager/user/recharge',
    method: 'get',
    params:  params
  })
}


// 审核预约
export function verifyReservation(reservationId) {
  return request({
    url: '/manager/user/verifyReservation',
    method: 'get',
    params: {
      id : reservationId
    }
  })
}



// 登出
export function userLogout(id) {
  return request({
    url: '/manager/user/logout',
    method: 'get',
    params: {
      id : id
    }
  })
}
